clear
cd "\\file\UsersW$\wrr15\Home\My Documents\My Files\REPLICATION OF ZIGRAIOVA AND HAVRANEK (2016)\REVISION FOR JOES"

log using "TABLE3.smcl", replace

**// Comparison of Sample Means for Z&H - Reproduction
use "Z&Hcompetition.dta"
set more off
gen double lnobs = ln(Samplesize)
**// unweighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal    

**//weighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal [aweight=investperst]       



**// Comparison of Sample Means for Replication
clear
use "all.dta"
set more off
gen double lnobs = ln(Samplesize)
**// unweighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal 

**// weighted
sum PCC SEPCC lnobs T sampleyear developed undeveloped mixed quadratic ///
endogeneity macro someAveraged dummies NPL Zscore profit_volat profitability  ///
capitalization DtoD other_stability Hstatistic Boone Concentration Lerner HHI ///
other_competition Logit OLS FE RE GMM SLS other_method regulation ownership ///
global citations firstpub  IFrecursive reviewed_journal [aweight=investperst]

log close
